import React from 'react';
import ReactDOM from 'react-dom';
import ajax from "axios";
import './index.css';
// import App from './App';
import { HashRouter  as Router } from "react-router-dom"
import App from './router/staff'


const axios = ajax.create({
  // baseURL: "/api",
  baseURL: "http://ymq.vatti.com.cn:8090",
  withCredentials: true,
})

React.Component.prototype.$axios = axios

ReactDOM.render(
  <React.StrictMode>
    <Router>
      <App  />
    </Router>
  </React.StrictMode>,
  document.getElementById('root')
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals

